import request from "../utils/request";
interface ISearchParams {
  category: string
  search: string
}

export function getProList () {
  return request({
    url: '/pro/list'
  })
}

export function getSearchProList (params: ISearchParams) {
  return request({
    url: '/pro/searchPro',
    method: 'POST',
    data: params
  })
}

export function getCategoryList () {
  return request({
    url: '/pro/getCategory'
  })
}